using System;

namespace PluginFrame
{
	public class AfterPollingEventArgs : EventArgs
	{
		private readonly ModuleStatus[] mModuleStatus;

		private readonly double[] mTemperature;

		public ModuleStatus GetModuleStatus(int index)
		{
			if (index >= 0 && index < mModuleStatus.Length)
			{
				return mModuleStatus[index];
			}
			return ModuleStatus.NA;
		}

		public double GetTemperature(int index)
		{
			return mTemperature[index];
		}

		public AfterPollingEventArgs(double[] temperature, ModuleStatus[] moduleStatus)
		{
			mTemperature = temperature;
			mModuleStatus = moduleStatus;
		}
	}
}
